function getGroupByIndex(patternStr, content, groupIndex){
    var pattern = Pattern.compile(patternStr);
    return ReUtil.get(pattern, content, groupIndex)
}

function getGroup0(patternStr, content){
    return getGroupByIndex(patternStr, content, 0)
}

function getGroup1(patternStr, content){
    return getGroupByIndex(patternStr, content, 1)
}

function findAll(patternStr, content, groupIndex) {
    var pattern = Pattern.compile(patternStr);
    return ReUtil.findAll(pattern, content, groupIndex)
}

function isMatch(patternStr, content){
    var pattern = Pattern.compile(patternStr);
    return ReUtil.isMatch(pattern, content)
}